package dao

import (
	"time"
)

// 这是 LiCategorySpecification 的全局公开dao对象
var LiCategorySpecificationDao = liCategorySpecificationDao{}

// 这是 li_category_specification表 的实体类
type LiCategorySpecification struct {
	Id              int       `json:"id" form:"id" v:"id"`                                             // ID
	CreateBy        string    `json:"create_by" form:"create_by" v:"create_by"`                        // 创建者
	CreateTime      time.Time `json:"create_time" form:"create_time" v:"create_time"`                  // 创建时间
	DeleteFlag      bool      `json:"delete_flag" form:"delete_flag" v:"delete_flag" gm:"delete_flag"` // 删除标志 true/false 删除/未删除
	UpdateBy        string    `json:"update_by" form:"update_by" v:"update_by"`                        // 更新者
	UpdateTime      time.Time `json:"update_time" form:"update_time" v:"update_time"`                  // 更新时间
	CategoryId      string    `json:"category_id" form:"category_id" v:"category_id"`                  // 分类ID
	SpecificationId string    `json:"specification_id" form:"specification_id" v:"specification_id"`   // 规格ID

}

// 注意:这是 LiCategorySpecification 的私有dao对象
type liCategorySpecificationDao struct {
	Insert func(arg LiCategorySpecification) int                     //插入一条记录
	Update func(arg LiCategorySpecification) int                     //更新一条记录
	Delete func(arg LiCategorySpecification) int                     //删除一条记录
	Select func(arg LiCategorySpecification) LiCategorySpecification //获取一条记录
}
